package cn.ray.springframework.beans.factory.config;

import cn.ray.springframework.beans.BeansException;
import cn.ray.springframework.beans.factory.BeanFactory;

//自动化处理Bean工厂配置的接口
//提供自动装配的能力，允许将依赖自动注入到bean中
public interface AutowireCapableBeanFactory extends BeanFactory {
    /**
     * 执行BeanPostProcessors接口实现类的ppbi方法(
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean,String beanName)throws BeansException;

    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;

}
